﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AutoServey
{
    public partial class FrmMain : Form
    {
        public string AppPath = Application.StartupPath;
        public string xmlPath = "";
        public string filePath = "";
        public static FrmMain Instance;
        public static SocketClient socketClient = new SocketClient();

        public static FrmMain GetInstance()
        {
            if (Instance == null || Instance.IsDisposed)
            {
                Instance = new FrmMain();
            }
            return Instance;
        }
        public FrmMain()
        {
            InitializeComponent();
            Instance = this;
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
            socketClient.SocketConnect();
        }
    }
}
